package edu.pe.cayetano.framework;

import org.apache.log4j.PropertyConfigurator;

public class Configuration {
	

	private static String schemaDB;
	private static String connectionType;
	private static String connectionDB;
	private static String tipoLog;
	private static String rangoAsignacionCita;
	
	public static String getRangoAsignacionCita() {
		return rangoAsignacionCita;
	}

	public static void setRangoAsignacionCita(String rangoAsignacionCita) {
		Configuration.rangoAsignacionCita = rangoAsignacionCita;
	}

	public static String getConnectionDB() {
		return connectionDB;
	}

	public static void setConnectionDB(String connectionDB) {
		Configuration.connectionDB = connectionDB;
	}

	public static String getConnectionType() {
		return connectionType;
	}

	public static void setConnectionType(String connectionType) {
		Configuration.connectionType = connectionType;
	}

	public static String getSchemaDB() {
		return schemaDB;
	}

	public static void setSchemaDB(String schemaDB) {
		Configuration.schemaDB = schemaDB;
	}

	public static String getTipoLog() {
		return tipoLog;
	}

	public static void setTipoLog(String tipoLog) {
		Configuration.tipoLog = tipoLog;
	}

	public static void cargarLog4j(String fileLog4j){
		
		try{
			PropertyConfigurator.configure(fileLog4j);
		}
		catch(Exception e){
			System.out.println("[CONFIGURATION]Error cargando configuracion de Log4j: " + e);
		}
	}

}
